/*
* jlb
*/
package com.jlb.user.entity;

/**
 * 金兰宝 的实体类的状态
 * 状态:挖掘中的金兰宝状态 挖掘中 Dig_In，已挖到 Dig_Out, Recorded 入账
 *
 * @author jlb
 */
public enum UserJlbMinerState implements java.io.Serializable {
    Dig_In("挖掘中"),
    Dig_Out("已挖到"),
    Recorded("已入账"),
    Init("初始化"),;

    public String val;

    UserJlbMinerState(String val) {
        this.val = val;
    }

    /**
     * 根据状态名称查询状态
     *
     * @param stateName
     * @return
     */
    public static UserJlbMinerState getEnum(String stateName) {
        for (UserJlbMinerState userJlbState : UserJlbMinerState.values()) {
            if (userJlbState.name().equalsIgnoreCase(stateName)) {
                return userJlbState;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.name();
    }

}
